|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | COMPARE_VALUE 50000 |
Functions | |
| void | main (void) |
| void | TIMER1_A0_ISR (void) |
| #define COMPARE_VALUE 50000 |
TIMER_A, Toggle P1.0, CCR0 Cont. Mode ISR, DCO SMCLK
Toggle P1.0 using software and TA_0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TACLK. During the TA_0 ISR, P1.0 is toggled and 50000 clock cycles are added to CCR0. TA_0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TA_ISR. ACLK = n/a, MCLK = SMCLK = TACLK = default DCO ~1.045MHz
| / | | |
|---|---|
| – | RST |
| | | P1.0|-->LED
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 64 of file timer_a_ex2_continousModeOperationWithCCR0Interrupt.c.
| void main | ( | void | ) |
Definition at line 66 of file timer_a_ex2_continousModeOperationWithCCR0Interrupt.c.
References __no_operation(), and COMPARE_VALUE.
| void TIMER1_A0_ISR | ( | void | ) |
Definition at line 120 of file timer_a_ex2_continousModeOperationWithCCR0Interrupt.c.
References COMPARE_VALUE.